home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / toolssrc / makefile.dos < prev    next >
Encoding:
Makefile  |  1997-08-18  |  1.2 KB  |  65 lines  |  [TEXT/R*ch]

  1. # DOS makefile for mosmldep
  2.  
  3. INCLUDES=-I ../compiler
  4. COMPFLAGS=$(INCLUDES)
  5. LINKFLAGS=-g -P full $(INCLUDES)
  6.  
  7. !include "..\makefile.inc"
  8.  
  9. OBJS = \
  10.         deppars.uo deplex.uo mosmldep.uo
  11.  
  12. LIBOBJS = \
  13.         obj.uo nonstdio.uo lexing.uo parsing.uo
  14.  
  15. CLIBOBJS = \
  16.         hasht.uo fnlib.uo config.uo 
  17.  
  18. all: cutdeps mosmldep
  19.  
  20. mosmldep: $(OBJS)
  21.         $(MOSMLL) $(LINKFLAGS) -noheader -o mosmldep -files &&|
  22. $(LIBOBJS)
  23. $(CLIBOBJS) 
  24. $(OBJS)
  25. |
  26.  
  27. cutdeps: cutdeps.uo
  28.         $(MOSMLL) $(LINKFLAGS) -noheader -o cutdeps cutdeps.uo
  29.  
  30. deppars.sml deppars.sig: deppars.grm
  31.         $(MOSMLYACC) deppars.grm
  32.  
  33. clean:
  34.         del *.ui
  35.         del *.uo
  36.         del makefile.bak
  37.         del deppars.sig
  38.         del deppars.sml
  39.         del deplex.sig
  40.         del deplex.sml
  41.         del mosmldep.sml
  42.         del cutdeps
  43.         del mosmldep
  44.  
  45. install:
  46.     copy cutdeps $(TOOLDIR)
  47.     copy mosmldep $(TOOLDIR)
  48.  
  49. .sig.ui:
  50.         $(MOSMLC) -I ../compiler $<
  51.  
  52. .sml.uo:
  53.         $(MOSMLC) -I ../compiler $<
  54.  
  55. depend: deplex.sml deppars.sml
  56.         del makefile.bak
  57.         move makefile makefile.bak
  58.         $(MOSMLCUT) < makefile.bak > makefile
  59.         $(MOSMLDEP) >> makefile
  60.  
  61. ### DO NOT DELETE THIS LINE
  62. mosmldep.uo: deppars.ui deplex.uo 
  63. deppars.uo: deppars.ui 
  64. deplex.uo: deppars.ui 
  65.